package com.cxhc.system.domain.app;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.cxhc.common.annotation.Excel;
import com.cxhc.common.core.domain.BaseEntity;

import javax.validation.constraints.NotNull;

/**
 * 树木巡检记录对象 tree_inspect
 * 
 * @author Dhq
 * @date 2024-07-31
 */
@Data
@Accessors(chain = true)
public class TreeInspect
{

    /** ID */
    private Long id;

    /** 树木ID */
    @NotNull(message = "树木ID不能为空")
    private Long treeId;

    /** 录入用户ID */
    private Long userId;

    private String userName;

    private String deptName;

    /** 记录的图片多张 */
    @NotNull(message = "记录的图片不能为空")
    private String images;

    /** 记录的胸径 */
    @NotNull(message = "记录的胸径不能为空")
    private Long diameter;

    /** 录入时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createAt;

}
